<template>
    <div class="msg-box">
        <div class="msg-item">
            <common-title>保险消息</common-title>
            <div class="detail-list">
                <div class="list-item">
                    <span class="msg-icon">工人险</span>
                    平安人寿工人险已低于10份 <span class="control">查看</span>
                </div>
            </div>
        </div>
        <div class="msg-item">
            <common-title>审批消息</common-title>
        </div>
        <div class="msg-item">
            <common-title>账户消息</common-title>
        </div>
        <div class="msg-item">
            <common-title>工程消息</common-title>
        </div>
    </div>
</template>
<script>
export default {
    name: 'homeMsgBox'
}
</script>
<style lang="less" scoped>
.msg-box {
    overflow: hidden;
    width: 100%;
    margin-top: 10px;
    .msg-item {
        width: calc(50% - 5px);
        float: left;
        margin-bottom: 10px;
        margin-right: 10px;
        overflow: hidden;
        background: #fff;
        height: 304px;
        &:nth-child(2n+2) {
            margin-right: 0;
        }
        .detail-list {
            width: 100%;
            height: 100%;
            padding: 0 20px;
            .list-item {
                height: 60px;
                line-height: 60px;
                font-size: 14px;
                color: #333;
                border-bottom: 1px solid #E9EDF4;
                &:last-child {
                    border-bottom: 0;
                }
                .msg-icon {
                    padding: 6px;
                    border: 1px solid #1298FC;
                    border-radius: 2px;
                    font-size: 12px;
                    color: #1298FC;
                    margin-right: 13px;
                }
                .control {
                    float: right;
                    color: #1298FC;
                }
            }
        }
    }
}
</style>